function ref(target) {
  return new Ref(target);
}
class Ref {
  constructor(value) {
    this._value = value;
  }
  get value() {
    return this._value;
  }
  set value(newValue) {
    this._value = newValue;
  }
}
const obj = ref("张三");
console.log(obj.value);
obj.value = "李四";
console.log(obj.value);
